package com.anycc.cloud.auth.service.feign.fallback;

import com.anycc.cloud.auth.service.feign.AccountService;
import com.anycc.cloud.core.dto.AccountDto;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * account service fallback
 */
@Component
public class AccountServiceFallbackImpl implements AccountService {
    private static final Logger LOG = LoggerFactory.getLogger(AccountServiceFallbackImpl.class);

    @Override
    public AccountDto findByUsername(String username) {
        LOG.error("调用{}异常:{}", "findByUsername", username);
        return null;
    }
}
